package controle;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import vue.panneau1.Interface2DZone1;

public class ControleActionKeyListener2D implements KeyListener
{
	private Interface2DZone1 zone2D;
	
	public ControleActionKeyListener2D(Interface2DZone1 zone2D)
	{
		this.zone2D = zone2D;
	}
	
	public void keyTyped(KeyEvent e) 
	{
		if(e.getKeyChar() == KeyEvent.VK_ENTER)
		{
			ControleActionEquation2D c = new ControleActionEquation2D(zone2D);
			c.ajouter();
		}			
	}
	
	public void keyPressed(KeyEvent e){}
	
	public void keyReleased(KeyEvent e){}	
}
